<?php
/* @var $this ScheduleController */
/* @var $model Schedule */


$this->menu=array(
	//array('label'=>'List Schedule', 'url'=>array('index')),
	array('label'=>'Create Schedule', 'url'=>array('create')),
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#schedule-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>


<font color=red><b>
<?php echo "ajax worked"; ?>
</b></font>
<br>
<br>
<p>

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'schedule-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'idschedule',
		'team_id',
		'idshift',
		'idqshift',
		'idweekday',
		array(
			'class'=>'CButtonColumn',
		),
	),
)); ?>